package de.fhkiel.webservice;

import javax.jws.WebService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import de.fhkiel.webservice.dao.PaymentDAO;
import de.fhkiel.webservice.data.Payment;

@WebService(endpointInterface = "de.fhkiel.webservice.PaymentService")
public class PaymentServiceImpl implements PaymentService {

	@Autowired
    private PaymentDAO paymentDAO;

    @Transactional
    public void addPayment(Payment payment) {
    	paymentDAO.addPayment(payment);
    }
	
}
